package com.baizhi.feign;

import com.baizhi.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("BZKT-CATEGORY")
public interface CategoryClient {
    @GetMapping("/categories/{id}")
    public Category selectOne(@PathVariable("id") int id);
}
